/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

window.UMEDITOR_HOME_URL = '/static/script/umeditor/';

var frameName = document.getElementById('scriptTag').innerHTML;

var shoproot = '/';

// datatable 配置项
var DataTableConfig = {
    "bPaginate": false,
    "bLengthChange": false,
    "iDisplayLength": 6000,
    "bFilter": true,
    "bInfo": false,
    "bAutoWidth": false,
    "order": [[0, 'desc']],
    "fnInitComplete": function() {
        dataTableLis();
        $('.dataTables_filter').addClass('clearfix');
        $('.search-w-box input').attr('placeholder', '输入搜索内容');
    }
};

require.config({
    paths: {
        jquery: 'jquery-1.9.1.min',
        util: 'Wdmin/util',
        Spinner: 'spin.min',
        highcharts: 'highcharts/js/highcharts',
        fancyBox: 'fancyBox/source/jquery.fancybox.pack',
        datatables: 'DataTables/media/js/jquery.dataTables',
        jUploader: 'jUploader.min',
        ztree: 'zTree_v3/js/jquery.ztree.all-3.5.min',
        ztree_loader: 'Wdmin/ztree_loader',
        ueditor: 'umeditor/umeditor.min',
        ueditor_config: 'umeditor/umeditor.config',
        zxxFile: 'zxxFile',
        page_all_orders: 'Wdmin/orders/all_orders',
        page_orders: 'Wdmin/orders/express_orders',
        page_home: 'Wdmin/stat_center/home',
        page_list_products: 'Wdmin/products/list_products',
        page_alter_products_categroy: 'Wdmin/products/alter_products_categroy',
        page_alter_categroy: 'Wdmin/products/alter_categroy',
        page_iframe_list_products: 'Wdmin/products/iframe_list_products',
        page_iframe_alter_product: 'Wdmin/products/iframe_alter_product',
        page_list_customers: 'Wdmin/customers/list_customers'
    },
    shim: {
        'page_home': {
            deps: ['jquery', 'highcharts']
        },
        'page_all_orders': {
            deps: ['jquery', 'datatables']
        },
        'page_orders': {
            deps: ['jquery', 'datatables']
        },
        'page_list_products': {
            deps: ['jquery', 'datatables']
        },
        'page_alter_products_categroy': {
            deps: ['jquery', 'datatables', 'ztree']
        },
        'page_alter_categroy': {
            deps: ['jquery', 'datatables', 'ztree', 'jUploader']
        },
        'page_iframe_list_products': {
            deps: ['jquery', 'datatables', 'ztree']
        },
        'page_iframe_alter_product': {
            deps: ['jquery', 'datatables', 'ztree', 'ueditor']
        },
        'page_list_customers': {
            deps: ['jquery', 'datatables', 'ztree', 'ueditor']
        },
        'jUploader': {
            deps: ['jquery']
        },
        'datatables': {
            deps: ['jquery'],
            exports: 'datatable'
        },
        'highcharts': {
            deps: ['jquery'],
            exports: 'highcharts'
        },
        'ztree_loader': {
            deps: ['jquery', 'ztree'],
            exports: 'ztree_loader'
        },
        'zxxFile': {
            deps: ['jquery']
        },
        'ueditor': {
            deps: ['jquery', 'ueditor_config']
        },
        'ztree': {
            deps: ['jquery']
        },
        'jquery': {
            exports: '$'
        }
    },
    urlArgs: "bust=1.1.2",
    xhtml: true
});

require([frameName], function() {

});